package com.yunda.AJDeviceService.controller;

import com.yunda.AJDeviceService.common.web.controller.BaseController;
import com.yunda.AJDeviceService.common.web.domain.AjaxResult;
import com.yunda.AJDeviceService.data.ChnInfoData;
import com.yunda.AJDeviceService.data.entity.QueryCountParam;
import com.yunda.AJDeviceService.data.vo.QueryCountVo;
import com.yunda.AJDeviceService.service.CameraService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lq
 * @className CameraController
 * @description TODO
 * @date 2022/12/13 15:34
 */
@RestController
@RequestMapping(value = "/camera")
public class CameraController extends BaseController {

    @Autowired
    private CameraService cameraService;

    @RequestMapping(value="/queryCamera", method= RequestMethod.POST)
    public AjaxResult queryCamera() {

        List<ChnInfoData> list=cameraService.queryCamera();
        return AjaxResult.success(list);
    }

}
